#include<iostream>
#include<vector>
using namespace std;
int main()
{
	vector<int>arr;
	for (int i = 1; i < 11; i++) {
		arr.push_back(i * i);
	}
	for (int i = 0; i < arr.size(); i++) {
		cout << arr[i] << " ";
	}
	cout << endl;
	vector<int>().swap(arr);
	return 0;
}